package org.dromara.nursing.domain.bo;

import org.dromara.nursing.domain.BedInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 床位管理业务对象 ms_bed_info
 *
 * @author Xue
 * @date 2025-04-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BedInfo.class, reverseConvertGenerate = false)
public class BedInfoBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long bedId;

    /**
     * 房间号
     */
    @NotBlank(message = "房间号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String roomNumber;

    /**
     * 床位号
     */
    @NotBlank(message = "床位号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bedNumber;

    /**
     * 床位状态
     */
    @NotBlank(message = "床位状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bedStatus;

    /**
     * 老人姓名
     */
    @NotBlank(message = "老人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String elderName;

    /**
     * 备注
     */
    private String remarks;


}
